<?php

	class NavigationView {
		
		private $m_activeController = "activeController";
		
		//Creates link to the register page
		//Returns xhtml string
		public function DoRegisterLink(){
			return "<br/><a href='index.php?$this->m_activeController=Register'>Register new user<a/>";		
		}
		//Creates link for returning to the login form
		//Returns xhtml string
		public function DoBackToLoginLink(){
			return "<br/><a href='index.php?$this->m_activeController=Login'>Return to login<a/>";	
		}
		//Returns true if the activeController is Register
		public function IsRegisterControllerActive(){
			if(isset($_GET[$this->m_activeController]) && $_GET[$this->m_activeController]  == "Register"){
				return true;
			}
			return false;
		}
		
		
		
	}
